package com.buba.appointment.service.impl;

import com.buba.appointment.vo.AppointmentVo;
import com.buba.pojo.appointment.Appointment;
import com.buba.appointment.mapper.AppointmentMapper;
import com.buba.appointment.service.AppointmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 预约挂号表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Service
public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appointment> implements AppointmentService {

    @Autowired
    private AppointmentMapper appointmentMapper;

    @Override
    public List<AppointmentVo> regPatById(Integer id) {
        return appointmentMapper.regPatById(id);
    }

    @Override
    public List<AppointmentVo> cutPatientDate(Integer id, String begin, String end) {
        return appointmentMapper.cutPatientDate(id , begin , end);
    }

    @Override
    public AppointmentVo regRecordById(Integer id) {
        return appointmentMapper.regRecordById(id);
    }

    @Override
    public AppointmentVo gethouzhen(Integer id) {
        return appointmentMapper.gethouzhen(id);
    }
}
